/**
 * Created by Administrator on 2019/1/4.
 */
$(function () {
    var cur=0;
    //回到顶部
    $(function () {
        sub();
        $(window).scroll(sub);
        function sub() {
            if($(window).scrollTop()>0){
                $("#totop-back").removeClass("hid");
            }else{
                $("#totop-back").addClass("hid");
            }
        }
        $("#totop-back").click(function () {
            $("html,body").animate({scrollTop:0},500);
        })
    });
    //下拉列表
    $(".s3,.page").mouseenter(function () {
        $(".s3 img").attr("src","../img/xsjt.png");
        $(".page").show();
    }).mouseleave(function () {
        $(".s3 img").attr("src","../img/xxjt.png");
        $(".page").hide();
    });
});